<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户信息管理</title>
</head>
<body>
<h2 align="center">汽车信息</h2>
<table border="1" align="center">
    <tr>
        <th>车辆id</th>
        <th>车辆编号</th>
        <th>车牌号</th>
        <th>车架号</th>
        <th>操作</th>
    </tr>
    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
            <td><?php echo ($vo["id"]); ?></td>
            <td><?php echo ($vo["number"]); ?></td>
            <td><?php echo ($vo["plate_number"]); ?></td>
            <td><?php echo ($vo["frame_number"]); ?></td>
            <td>
                <a href="/index.php?c=car&a=delete&id=<?php echo ($vo["id"]); ?>">删除</a>
                <a href="/index.php?c=car&a=update&id=<?php echo ($vo["id"]); ?>">修改</a>
            </td>
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
<div align="center">
    <a href="/index.php?c=admin&a=index" >退出</a>
    <a href="/index.php?c=car&a=add">增加用户</a>
</div>
</body>
</html>